<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			*{
				margin: 0px;
				padding: 0px;
			}
			.test{
				width: 600px;
				height: 200px;
				border: 1px solid;
				margin: 0 auto;
				/* 改变渐变方向 */
				/* background-image: linear-gradient(to bottom, red, yellow, green); */
				/* 右边是 0 - 180deg，左边是 0 - -180deg */
				/* 控制颜色角度 */
				/* background-image: linear-gradient(45deg, red, yellow, green); */
				/* 控制颜色节点分布 */
				/* background-image: linear-gradient(90deg, red 10px, yellow, green); */
				/* 透明度渐变 */
				background-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 10px, rgba(100, 0, 100, 1), green);
			}
		</style>
	</head>
	<body>
		<div class="test">
			
		</div>
	</body>
</html>